package com.etc.zzsys.service.impl;

import java.util.List;

import com.etc.zzsys.dao.AnswerDao;
import com.etc.zzsys.dao.impl.AnswerDaoImpl;
import com.etc.zzsys.entiy.AnswerBean;
import com.etc.zzsys.service.AnswerService;
import com.etc.zzsys.util.PageData;

/**
 * AnswerService的实现类
 * 
 * @author knowno
 *
 */
public class AnswerServiceImpl implements AnswerService {

	/**
	 * 调用AnswerDao的方法
	 */
	private AnswerDao ad = new AnswerDaoImpl();

	@Override
	public List<AnswerBean> getAnswers() {
		// TODO Auto-generated method stub
		return ad.queryAnswers();
	}

	@Override
	public PageData<AnswerBean> queryAnswersByPage(int page, int pageSize,String keywords) {

		return ad.queryAnswersByPage(page, pageSize,keywords);
	}
	
	@Override
	public PageData<AnswerBean> queryAnswersByPage(int qid, int page, int pageSize, String keywords) {
		// TODO Auto-generated method stub
		return ad.queryAnswersByPage(qid, page, pageSize, keywords);
	}

}
